How to execute sql code based on fetch array

join shbcf.ru